package com.base.model;


import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

/**
 * jsonResult中的Data提供给App的返回结果反射
 * 
 * Author：liaozhanggen
 * Create Date：2017年3月24日
 * Version：v2.0
 */
public class JsonDataResult<T> implements Serializable{

	/**
	 * @auth liaozhanggen 2016-11-23 下午1:38:50
	 */
	private static final long serialVersionUID = -5192270064169684048L;

	 
	@ApiModelProperty(value = "当前页")
	private int pageNum;
	/**
	 * 提示消息
	 */
	@ApiModelProperty(value = "当前页条数")
	private int pageSize  ;

	 
	@ApiModelProperty(value = "总条数")
	private long total;
	
	/**
	 * 提示消息
	 */
	@ApiModelProperty(value = "总页码")
	private int pages  ;

	/**
	 * 数据对象
	 */
	@ApiModelProperty(value = "返回的集合对象|列表")
	private List<T> list;

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}

	public int getPageNum() {
		return pageNum;
	}

	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getPages() {
		return pages;
	}

	public void setPages(int pages) {
		this.pages = pages;
	}

	public List<T> getList() {
		return list;
	}

	public void setList(List<T> list) {
		this.list = list;
	}
}
